﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="fengxiangwenjian.aspx.cs" Inherits="FPC.Offer.UI.SkyDrive.fengxiangwenjian" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link href="../H-ui/static/h-ui/css/H-ui.min.css" rel="stylesheet" />
    <link href="../H-ui/static/h-ui.admin/css/H-ui.admin.css" rel="stylesheet" />
    <link href="../H-ui/Lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" />
    <link href="../H-ui/static/h-ui.admin/skin/default/skin.css" rel="stylesheet" />
    <link href="../H-ui/static/h-ui.admin/css/style.css" rel="stylesheet" />
    <link href="../H-ui/Lib/layer/2.4/skin/layer.css" rel="stylesheet" />
    <title>我的分享</title>
</head>
<body>
    
     <nav class="breadcrumb">
        <i class="Hui-iconfont">&#xe67f;</i> 首页
        <span class="c-gray en">&gt;</span>
        网盘
        <span class="c-gray en">&gt;</span>
        我的分享
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
    </nav>
    <div class="page-container">
       
        <div class="cl pd-5 bg-1 bk-gray mt-20">
            
            <span class="r">共有数据：<strong>54</strong> 条</span>
        </div>
        <div class="mt-20">
            <table class="table table-border table-bordered table-hover table-bg table-sort">
             
                <thead>
                    <tr class="text-c">
                        <th width="25"></th>
                        <th width="200">文件名称</th>
                      
                        <th width="100">操作</th>
                    </tr>
                </thead>
                <tbody id ="tr">
                 
                  
                </tbody>
                
            </table>
             <div id ="tt">
           
                </div>
        </div>
    </div>
       <!--_footer 作为公共模版分离出去-->
    
    <script type="text/javascript" src="../H-ui/Lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="../H-ui/lib/layer/2.4/layer.js"></script>
    <script type="text/javascript" src="../H-ui/static/h-ui/js/H-ui.min.js"></script>
    <script type="text/javascript" src="../H-ui/static/h-ui.admin/js/H-ui.admin.js"></script>
    <!--/_footer 作为公共模版分离出去-->
<%--    <!--请在下方写此页面业务相关的脚本-->
    <script type="text/javascript" src="../H-ui/jquery.validation/1.14.0/jquery.validate.js"></script>
    <script type="text/javascript" src="../H-ui/jquery.validation/1.14.0/validate-methods.js"></script>
    <script type="text/javascript" src="../H-ui//jquery.validation/1.14.0/messages_zh.js"></script>--%>
    <script src="jquery.params.js"></script>

    <script>
        var id = $.query.get("id");
   //输入口令
        $(function () {
            var tt = ""
            tt+="口令：<input type='text' id='aa' /><input  type='button' onclick='fun()' value='确定'/>"

            $("#tt").append(tt);

            //layer.prompt({ title: '输入任何口令，并确认', formType: 1 }, function (pass, index) {
                
 

                
            //    if (index == value) {
            //        layer.close(index);
            //        s = pass;
            //    }
            //    else {
            //        s = false;
            //        location.href = "fengxiangma.aspx";
                  
            //    }

            //    });
        })
       //显示分享的内容
        function fun()
        {
            $("#tt").hide();
    

            $.ajax({

                type: "post",
                url: "../GeneralProcessor/SkyDriveHand/ShareLodnHandler.ashx",
                data: {
                    Actioon: "<%=FPC.Offer.Common.EnumAction.Select %>",
                    ids: id,
                    pwd: $("#aa").val(),

                },
                success: function (mes) {


                    var item = JSON.parse(mes);

                    var tr = "";
                    $(item).each(function (i, item) {


                        tr += " <tr class='text-c'><td></td><td class='text-l'>" + item.ShareName + "<td>" + item.ShareDate + "</td><td class='f-14'><a title='下载' href='/GeneralProcessor/SkyDriveHand/DownloadZiHandler.ashx?id=" + item.ShaId + "'  class='ml-5' style='text-decoration:none'><i class='Hui-iconfont'>&#xe6e1;</i></a></td></tr>"


                    })
                    $("#tr").append(tr);
                }
            })

        }
        


    </script>




    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>
